package com.tuo51.childcare.domain.vo;

import com.tuo51.childcare.domain.dailyrecord.DailyGrowRecord;
import com.tuo51.foudation.utils.CopyUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 每日观察记录
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DailyGrowRecordVO {

    private String title;

    private String value;

    private Integer dailyIndex = 0;

    private String templateId;

    public static DailyGrowRecordVO of(DailyGrowRecord obj){
        DailyGrowRecordVO ret = new DailyGrowRecordVO();

        CopyUtils.copyProperties(obj, ret);

        return ret;
    }
}
